import React, { Component } from 'react'
import './top.css'
class top extends React.Component{
    constructor(props){
        super(props)
        this.state={

        }
    }
    render(){
        return(
            <div className="top">{this.props.arr.map((item,index)=>{
                return <div><img src={item.img}></img>{item.title}</div>
            })}</div>
        )
    }
}
export default top